package org.wdcode.back.po;

import org.wdcode.common.util.DateUtil;

/**
 * 扩展BaseBackStateEntityBean的抽象类 添加createDate属性
 * @author WD
 * @since JDK6
 * @version 1.0 2009-11-29
 */
public abstract class BaseBackCreateDateEntityBean extends BaseBackStateEntityBean {
	// 操作时间
	private Long	createDate;

	/**
	 * 构造函数
	 */
	public BaseBackCreateDateEntityBean() {
		super();
	}

	/**
	 * 构造函数
	 */
	public BaseBackCreateDateEntityBean(int id) {
		super(id);
	}

	/**
	 * 构造函数
	 */
	public BaseBackCreateDateEntityBean(int id, String name) {
		super(id, name);
	}

	/**
	 * 构造函数
	 */
	public BaseBackCreateDateEntityBean(int id, String name, Short state) {
		super(id, name, state);
	}

	/**
	 * 获得操作时间
	 * @return 操作时间
	 */
	public final Long getCreateDate() {
		return this.createDate;
	}

	/**
	 * 设置操作时间
	 * @param createDate 操作时间
	 */
	public final void setCreateDate(Long createDate) {
		this.createDate = createDate;
	}

	/**
	 * 获得显示操作时间字符串
	 * @return 显示操作时间字符串
	 */
	public final String getCreateDateString() {
		return DateUtil.getDate(createDate);
	}
}
